class ListViewModel {
  String title;
  String msgContent;
  String msgTime;
  String imageUrl;
  String path;

  ListViewModel({ required this.title,
                  required this.msgContent,
                  required this.msgTime,
                  required this.imageUrl,
                  required this.path});

  factory ListViewModel.fromJson(Map<String, dynamic> json) {
    return ListViewModel(
    title:json['title'],
    msgContent:json['msgContent'],
    msgTime:json['msgTime'],
    imageUrl:json['imageUrl'],
    path:json['path']);
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['title'] = this.title;
    data['msgContent'] = this.msgContent;
    data['msgTime'] = this.msgTime;
    data['imageUrl'] = this.imageUrl;
    data['path'] = this.path;
    return data;
  }
}
